package laspon.vvvlike.school.dto.resquse;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @ClassName:AdminAccountDto
 * @Author: xqcw9
 * @Date: Created on 2020/9/14 09:53
 * @Version: 1.0
 */
public class StudentAccountDto implements Serializable {
    private static final long serialVersionUID = 752113141530290342L;

    @ApiModelProperty(name = "id", example = "001", value = "flag为:删除或更新时必传")
    private long id;

    @ApiModelProperty(name = "flag", example = "0", value = "flag 0-删除 1-保存 2-更新")
    @NotBlank(message = "flag 字段必传")
    private int flag;

    @ApiModelProperty(name = "name", example = "001", value = "name")
    private String name;

    @ApiModelProperty(name = "sex", example = "0", value = "sex 0-女 1-男")
    private String sex;

    @ApiModelProperty(name = "phoneNumber", example = "15195755537", value = "phoneNumber")
    private String phoneNumber;

    @ApiModelProperty(name = "wx", example = "XXX-XXX-XXX", value = "wx")
    private String wx;

    @ApiModelProperty(name = "address", example = "江苏-徐州-沛县", value = "address")
    private String address;

    public StudentAccountDto(String name, String phone, String wx, int flage) {
        this.name = name;
        this.phoneNumber = phone;
        this.wx = wx;
        this.flag = flage;

    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getWx() {
        return wx;
    }

    public void setWx(String wx) {
        this.wx = wx;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
